﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Sec_scan安全漏洞扫描系统_2._0
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
            // 启动居中
            StartPosition = FormStartPosition.CenterScreen;
        }
        /// <summary>
        /// 启动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Login_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text))
            {
                MessageBox.Show("账号及密码不能为空！");
            }
            else
            {
                if(textBox1.Text == "admin")
                {
                    if (textBox2.Text == "admin")
                    {
                        HomeForm.Home home = new HomeForm.Home();
                        home.Show();
                    }
                }
            }
        }
    }
}
